<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreatGameNcdhBettingSortTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('game_ncdh_betting_sort', function (Blueprint $table) {
            $table->increments('id')->comment('农场大亨投注种类表');
            $table->string('name', 100)->comment('种类名称');
            $table->tinyInteger('parent_id')->unsigned()->default('0')->comment('种类父级id');
            $table->string('odds')->comment('赔率');
            $table->tinyInteger('level')->unsigned()->comment('种类级别');
            $table->string('image', 100)->nullable()->comment('图标');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
